import scrapy


class VideoTianSpider(scrapy.Spider):
    name = "video_tian"

    start_urls = ["https://www.dytt8899.com/"]

    def start_requests(self):
        yield scrapy.Request(url=self.start_urls[0],callback=self.parse)


    def parse(self, response):
        items = response.xpath("//ul")
        for item in items:
            title = item.xpath("./li/a/text()").get()
            href = item.xpath("./li/a/@href").get()
            print(title,href)
